package me.zhangyifeng.blog.model.domain;

import java.util.Date;

/**
 * 用户活动关系实体类
 * 
 * @author zhangyifeng
 */
public class UserActivity {
    
    private Integer userId;
    private Integer activityId;
    private Date joinedAt;
    
    // 关联的用户信息（非数据库字段）
    private User user;
    
    // 关联的活动信息（非数据库字段）
    private Activity activity;

    public UserActivity() {
    }
    
    public UserActivity(Integer userId, Integer activityId) {
        this.userId = userId;
        this.activityId = activityId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public Date getJoinedAt() {
        return joinedAt;
    }

    public void setJoinedAt(Date joinedAt) {
        this.joinedAt = joinedAt;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Activity getActivity() {
        return activity;
    }

    public void setActivity(Activity activity) {
        this.activity = activity;
    }
}
